package com.houtai.dao;

import com.houtai.bean.TdPraise;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdPraiseDao {
    /**
     * @Purpose:    添加点赞
     * @param:      tdPraise
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdPraise(TdPraise tdPraise);
 
    /**
     * @Purpose   查找活动作品详情
     * @param     works_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TdPraise
     */
    TdPraise findTdPraise(@Param("works_id")int works_id,
                          @Param("user_id")int user_id);
    /**
     * @Purpose:    更新点赞
     * @param:      tdPraise
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdPraise(TdPraise tdPraise);
}
